package o;

public class dgr {
    private static dgr ॱ = new dgr();
    private boolean ˊ = false;
    private String ˋ = null;
    private String ˎ = null;
    private int ˏ = -1;

    private dgr() {
    }

    public static dgr ˋ() {
        return ॱ;
    }

    public synchronized boolean ॱ(String str) {
        boolean z = true;
        synchronized (this) {
            if (this.ˊ) {
                z = false;
            } else {
                this.ˊ = true;
                this.ˋ = str;
                Logger.ˎ("DailyActiveReportContext", "isFirstActive from " + str);
            }
        }
        return z;
    }

    public synchronized void ˊ() {
        String str = this.ˋ;
        this.ˊ = false;
        this.ˋ = null;
        this.ˎ = null;
        this.ˏ = -1;
        Logger.ˎ("DailyActiveReportContext", "resetActive from " + str);
    }

    public synchronized void ˋ(String str, int i) {
        this.ˎ = str;
        this.ˏ = i;
    }

    public synchronized String ˎ() {
        String str;
        str = this.ˎ;
        this.ˎ = null;
        return str;
    }

    public synchronized int ˏ() {
        int i;
        i = this.ˏ;
        this.ˏ = -1;
        return i;
    }

    public synchronized boolean ॱ() {
        boolean z;
        z = this.ˊ && this.ˎ != null;
        return z;
    }
}
